package common

import (
	"context"
	v1 "qiyu-contact/api/common/v1"
	"qiyu-contact/internal/service"
)

func (c *CommonControllerV1) Upload(ctx context.Context, req *v1.UploadReq) (res *v1.UploadRes, err error) {
	upload, err := service.Common().Upload(ctx, req)
	if err != nil {
		return nil, err
	}
	res = upload
	return
}
